using Cysharp.Threading.Tasks;
using DG.Tweening;

public static partial class Extensions
{
    public static UniTask AsUniTask(this Tween tween)
    {
        return UniTask.WaitUntil(() => tween == null || !tween.active || !tween.IsPlaying());
    }
}